package tools.util;

import java.io.PrintStream;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RandomID
{
   static	Logger log = LoggerFactory.getLogger(RandomID.class);
	
  public static String GenTradeId()
  {
    String str = "";
    RandomStrg.setCharset("a-zA-Z0-9");
    RandomStrg.setLength("15");
    try
    {
      RandomStrg.generateRandomObject();
      str = RandomStrg.getRandom();
    }
    catch (Exception ex)
    {
      log.debug("e = " + ex.getMessage());
    }
    return str;
  }

  public static void main(String[] paramArrayOfString)
  {
    RandomID localRandomID = new RandomID();
    log.debug(GenTradeId());
  }
}

